package cn.gov.main;


import cn.geracomium.util.encrypt.EncryptUtil;

import java.util.HashMap;
import java.util.Map;

public class Test {
    public static void main(String[] args) {
        String s = "account_id,name,phone,sex,personal_type,id_card,birthday,is_married,live_address," +
                "census_register_address,remark,creator,create_time,leave_time,status,frozen_reason,is_manager" ;

        String b = "accountId,name,phone,sex,personalType,idCard,birthday,isMarried,liveAddress,censusRegisterAddress,remark,creator,createTime,leaveTime,status,frozenReason,isManager" ;


        System.out.println(count(s));
        System.out.println(count(b));

        Long xx = 100L ;
        System.out.println(xx.toString());

        System.out.println(EncryptUtil.encrypt("123456"));
    }
    public static Map<Character,Integer> count(String str) {
        Map<Character,Integer> all = new HashMap<Character,Integer>() ;
        char[] c = str.toCharArray() ;
        for (char key : c) {
            if (all.containsKey(key)) {
                all.put(key, all.get(key) + 1) ;
            } else {
                all.put(key, 1) ;
            }
        }
        return all ;
    }
}
